import java.util.*;
public class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = "AHIMOTUVWXY";
        while(sc.hasNextLine()){
            String str = sc.nextLine();
            int i = 0;
            for(i = 0; i < str.length(); i++) {
                if(!s.contains(str.charAt(i) + "")){
                    break;
                }
            }
            if(i < str.length()){
                System.out.println("No");
                continue;
            }
            int left = 0;
            int right = str.length()-1;
            while(left <= right) {
                if(str.charAt(left) != str.charAt(right)){
                    break;
                }
                left++;
                right--;
            }
            if(left <= right) {
                System.out.println("No");
            }else{
                System.out.println("Yes");
            }
        }
    }
}